package hjw.com.entity;

/**
 * <p>Project:Academic - OrderItem
 *
 * @author IvanWei玮 -- maste
 * @version 1.0
 * @DataTime 2025/2/18 13:02
 * @since 1.8
 */
public class OrderItem {
    private int itemid;
    private int ordid;
    private Book book;
    private int num;
    private double price;

    public OrderItem() {
        this.itemid = 0;
        this.ordid = 0;
        this.book = new Book();
        this.num = 0;
        this.price = 0.0;
    }

    public int getItemid() {
        return itemid;
    }

    public void setItemid(int itemid) {
        this.itemid = itemid;
    }

    public int getOrdid() {
        return ordid;
    }

    public void setOrdid(int ordid) {
        this.ordid = ordid;
    }

    public Book getBook() {
        return book;
    }

    public void setBook(Book book) {
        this.book = book;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "OrderItem{" +
                "itemid=" + itemid +
                ", ordid=" + ordid +
                ", book=" + book +
                ", num=" + num +
                ", price=" + price +
                '}';
    }
}
